<?php

namespace App\Http\Controllers\CmsApi;

use Illuminate\Http\Request;
use App\Http\Model\Hint;
use App\Http\Controllers\BaseController;
use App\Lib\Response;
use App\Http\Services\UserVerifyServices;

class InnerUserVerifyController extends BaseController
{
    protected $user_verify_service;

    public function __construct()
    {
        $this->user_verify_service = new UserVerifyServices();
    }

    /**
     * 清理用户实名认证
     */
    public function clearUserAll(Request $request)
    {
        $rules = [
            'user_id' => 'required',
        ];
        $messages = [
            'user_id' => '请输入用户ID',
        ];
        $params = parent::validateParams($request->all(), $rules, $messages);
        $this->user_verify_service->clearUserAll($params['user_id']);
        Response::returnResult(Hint::SUCCESS);
    }

}